<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class FleaCollectionGoods extends Model
{
    protected $table = 'flea_collection_goods';

    protected $guarded = [];

    protected $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s'
    ];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }
}
